package main

import "fmt"

func caljc(index string, a, b int) int {
	ret := a + b
	fmt.Println(index, a, b, ret)
	return ret
}

func main() {
	x := 1
	y := 2
	defer caljc("AA", x, caljc("A", x, y))
	x = 10
	defer caljc("BB", x, caljc("B", x, y))
	y = 20
	//A 1 2 3
	//B 10 2 12
	//BB 10 12 22
	//AA 1 3 4
}
